package net.tensor.tensor.files.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Q
 */
public class Tree {
    private String name = "";
    private String code = "";
    private Map<String, Tree> children = new HashMap<>();

    public Tree() {
    }

    public Tree(String name, String code, Map<String, Tree> children) {
        this.name = name;
        this.code = code;
        this.children = children;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Map<String, Tree> getChildren() {
        return children;
    }

    public void setChildren(Map<String, Tree> children) {
        this.children = children;
    }
}
